<script>
		function Can_not_use()
		{
			alert("Tính năng này chưa được đưa vào sử dụng!");
			}

	</script>
<div class="formlogin">
	<?php
	$auth = Zend_Auth::getInstance ();
	if ($auth->hasIdentity ()) {
		$info = $auth->getIdentity ();
		?>

	<div class="md_bn">
		<span><?php echo sign_in?></span>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
          <?php echo "<a class='text_dk' style='font-size:10px;' href='" . DOMAIN . "/index/logout" . "' >Đăng xuất</a>";?></div>
	<div class="md_ct pd_t_10">
	<?php
		echo "<p class='lg_tc_p'><span class='lg_tb_xinchao'>Xin chào! </span><span class='lg_tc_name'>$info->USERNAME</span></p>";
		?>
	</div>
	<?php
	} else {
		?>
    	<div class="md_bn"><?php echo sign_in?></span>
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		<a class="text_dk" id="dangky" href="<?php echo DOMAIN."/dang-ky.html"?>"><?php echo register?></a>
	</div>
	<div class="md_ct pd_t_10">
		<form action="<?php echo DOMAIN."/index/login"?>" method="post">
			<table width="100%" border="0" cellspacing="0" cellpadding="0">
				<tr>
					<td colspan="2">
                            <?php echo email?></br> <input
						class="input230" type="text" name="email" />
					</td>
				</tr>
				<tr>
					<td height="5" colspan="2"></td>
				</tr>
				<tr>
					<td colspan="2">
                            <?php echo pass?></br> <input
						class="input230" type="password" name="password" />
					</td>
				</tr>
				<tr>
					<td width="63%" height="50"><a href="#" onclick="Can_not_use();"><?php echo forgot_pass?></a></td>
					<td width="37%" align="right"><input type="submit" name="login"
						value="<?php echo log_in?>" /></td>
				</tr>
			</table>

		</form>
	</div>
        <?php }?>
    </div>
<!--End .formlogin-->

<div class="hotrotructuyen">
	<div class="md_bn"><?php echo online_support?></span>
	</div>
	<div class="md_ct pd_t_10">
		<table width="100%" border="0" cellspacing="0" cellpadding="0">
			<tr>
				<td height="50" align="center" valign="middle">
					<p class="style_text_hotro"><?php echo like_facebook_support?></p>
					<p>Mr Truyền - 0946 798965</p> <a
					href="ymsgr:sendIM?tien.happiness"><img border="0"
						src="http://opi.yahoo.com/online?u=tien.happiness&amp;m=g&amp;t=2"></a>
				</td>
			</tr>
			<tr>
				<td height="50" align="center" valign="middle">
					<p class="style_text_hotro"><?php echo design_website_support?></p>
					<p>Mr Nguyên - 01274 274 298</p> <a
					href="ymsgr:sendIM?tien.happiness"><img border="0"
						src="http://opi.yahoo.com/online?u=tien.happiness&amp;m=g&amp;t=2"></a>
				</td>
			</tr>
			<tr>
				<td height="50" align="center" valign="middle">
					<p class="style_text_hotro"><?php echo sms_market_support?></p>
					<p>Mr Lộc - 0983 838 339</p> <a href="ymsgr:sendIM?tien.happiness"><img
						border="0"
						src="http://opi.yahoo.com/online?u=tien.happiness&amp;m=g&amp;t=2"></a>
				</td>
			</tr>

		</table>
	</div>
</div>
<!--End .hotrotructuyen-->

<div class="baivietmoi">
	<div class="md_bn"><?php echo new_post?></span>

	</div>
	<div class="md_ct">
		<div class="wrapper">
			<div id="jp-container" class="jp-container">
				<?php
				$news = new Default_Model_DbTable_News ();
				?>
				<?php foreach ($news->newNews() as $tin):?>
					<a target="_blank"
					href="<?php echo DOMAIN."/news/shownews/id/".$tin["id"]?>">
						<?php echo $tin["TITLE"]?>
					</a>
				<?php endforeach;?>	
				</div>
		</div>
	</div>
</div>
<!--End .baivietmoi-->
<div style="clear: both; height: 0px;">&nbsp;</div>
<div class="facebook">
	<div class="md_bn">
		Facebook</span>
	</div>
	<div class="md_ct">
		<iframe
			src="//www.facebook.com/plugins/likebox.php?href=http%3A%2F%2Fwww.facebook.com%2Fchukysovnpt&amp;width=240&amp;height=345&amp;colorscheme=light&amp;show_faces=true&amp;border_color=%2373ABC8&amp;stream=false&amp;header=false&amp;appId=228159403968859"
			scrolling="no" frameborder="0"
			style="border: none; overflow: hidden; width: 240px; height: 345px;"
			allowTransparency="true"></iframe>
	</div>
</div>
<!--End .facebook-->

<div class="giaitri">
	<a href=""><img
		src="<?php echo STYLE."/public/default/"?>images/giaitri.jpg"
		alt="Giáº£i trÃ­" title="Giáº£i trÃ­" /></a>
</div>
<div class="khuyenmai">
	<a href=""><img
		src="<?php echo STYLE."/public/default/"?>images/khuyenmai.jpg"
		alt="Khuyáº¿n mÃ£i" title="Khuyáº¿n mÃ£i" /></a>
</div>
<a href=""></a>